/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.etop.beans;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户项目信息
 * @author Lin Duxiang
 */
@Entity
@Table(name="user_project")
public class User_project implements Serializable {
    private int id;
    private int pro_id;//项目id
    private int u_id;//成员id
    private int isleader;//是否为负责人，1为负责人，0就不是

    public User_project() {
    }

    public User_project(int pro_id, int u_id, int isleader) {
        this.pro_id = pro_id;
        this.u_id = u_id;
        this.isleader = isleader;
    }
    
    public int getIsleader() {
        return isleader;
    }

    public void setIsleader(int isleader) {
        this.isleader = isleader;
    }
    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPro_id() {
        return pro_id;
    }

    public void setPro_id(int pro_id) {
        this.pro_id = pro_id;
    }

    public int getU_id() {
        return u_id;
    }

    public void setU_id(int u_id) {
        this.u_id = u_id;
    }

    @Override
    public String toString() {
        return "User_project{" + "id=" + id + ", pro_id=" + pro_id + ", u_id=" + u_id + ", isleader=" + isleader + '}';
    }
    
    
}